<?php include "config.php" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Nusantara View</title>
<!-- #BeginLibraryItem "/Library/jquey.lbi" --><script type="text/javascript" src="hebergement_files/jquery.js"></script>
<script type="text/javascript" src="hebergement_files/thickbox.js"></script>
<link rel="stylesheet" type="text/css" href="hebergement_files/thickbox.css" media="screen"><!-- #EndLibraryItem --><link rel="stylesheet" type="text/css" href="peta_files/le-moulin-de-sauvage.css" media="screen">
<script
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAlSrsSTN5DgS8ZVvOIMXgaRTNmsdf8oJErPgj8pmeVh4CV1HAChSnA5L1BrGdSJY6TQbpy9Y0lCCvvg"></script>

<script type="text/javascript">
var map;
var geoXml;

function initialize() {
      
      if (GBrowserIsCompatible()) {      
        geoXml = new GGeoXml("http://nusantaraview.web.id/PETA/ruteok5.kml");
		
		map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(-7.2491667, 112.7508333), 13);
        map.setUIToDefault();;

        map.addOverlay(geoXml);
		
      }
    }

</script>

</head>

<body onload="initialize()" onunload="GUnload()">
<div id="top"> 
    
   
  <div id="main"> 
    <div id="content-hebergement" class="content">
      <div id="page"> 
        <p align="center"><img src="nusaview_bg_grad_sidebar2/images/Header.jpg" width="1100" height="250" />
        <div align="center">
          <table width="1102" border="0" background="nusaview_bg_grad_sidebar2/images/nav_baru.png">
            <tr>
              <td width="80" height="21"><a href="../">Home</a></td>
              <td width="227"><a href="peta.php">Menggunakan Kendaraan Pribadi </a></td>
              <td width="170"><a href="index2.php">Data Transportasi Umum </a></td>
              <td width="607"><a href="index.php">Menggunakan kendaraan umum </a></td>
            </tr>
          </table>
          </p>
          <table width="1132" border="0">
            <tr>
              <th width="800" scope="col"><div id="map_canvas" style="width: 800px; height: 800px"></div></th>
              <th width="312" scope="col" valign="top" align="left"><form action="index2.php" method="post" >
                <p>Data Kendaraan Umum Tiap Kota </p>
          <table width="199" bordercolor="#ECE9D8">
            <tr>
              <th width="44" align="right">Kota</th>
              <td width="143"><select name="kota">
                <? $result = mysql_query("SELECT * FROM jos_kota order by nama_kota");
  while($r = mysql_fetch_array($result)) 
   { 
    echo "<option value='$r[nama_kota]'>$r[nama_kota]</option>";
	
	

 } ?>
                </select></td>
            </tr>
            <tr>
              <th>&nbsp;</th>
              <td colspan="7"><div align="left">
                <input name="submit" type="submit" value="Submit" />
                </div></td>
            </tr>
            </table>
		  </form>
		        <table width="312" border="3">
		          <tr>
		            <th width="167" scope="col">Nama Kendaraan </th>
                    <th width="125" scope="col">Jalur</th>
                  </tr>
		          <? $kota = $_POST['kota'];
				 if ($kota == "") {
				 $kota = "bukan_kota";
				 }
				 $result = mysql_query("SELECT * FROM transport where kota = '$kota'");

			if (mysql_num_rows($result) > 0) {
  while($r = mysql_fetch_array($result)) 
   { if ($aku2 != $r[jalur] && $r[nama] != "Jalan") { ?>
   
		          <tr>
				 
		            <th width="167" scope="col"><? echo $r[nama]; ?></th>
                    <th width="125" scope="col"><? echo $r[jalur]; ?></th>
					
			
                  </tr> <? $aku = $r[nama]; $aku2 = $r[jalur];
					} } }?>
              </table></th>
            </tr>
          </table>
        </div>
        <p align="center">&nbsp;</p>
        <p align="center">        </p>
      </div>
    </div>
  </div>
  <div id="footer"></div>
</div>
<!-- #BeginLibraryItem "/Library/google-analytics.lbi" --><script src="hebergement_files/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2218183-1";
urchinTracker();
</script><!-- #EndLibraryItem -->
</body>
</html>